/*
 * File      : application.c
 * This file is part of RT-Thread RTOS
 * COPYRIGHT (C) 2006, RT-Thread Development Team
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rt-thread.org/license/LICENSE
 *
 * Change Logs:
 * Date           Author       Notes
 * 2009-01-05     Bernard      the first version
 */

#include <rtthread.h>
#include <stdio.h>
#include <board.h>

#include <components.h>


void rt_init_thread_entry(void *parameter)
{

}


int rt_application_init()
{
	extern void geo_ui_entry(void *param);
	extern void geo_demo_entry(void *parameter);
	extern void geo_demo_entry(void *parameter);
	rt_thread_t tid;

// 	tid = rt_thread_create("ui_thread",
// 		gui_entry, RT_NULL,
// 		2048, RT_THREAD_PRIORITY_MAX / 4, 20);
// 
// 	if (tid != RT_NULL)
// 		rt_thread_startup(tid);

	tid = rt_thread_create("geo_ui",
		//geo_ui_entry, RT_NULL,
		geo_demo_entry, RT_NULL,
		1024 * 8, 25, 10);

	if (tid != RT_NULL)
		rt_thread_startup(tid);

    return 0;
}

/*@}*/
